#include <stdio.h>


#define FN_MASK 0xff000000


const char* GuGetFuncName(const void *pFuncAddr)
{
	const UINT32 *pMagic = (const UINT32 *)pFuncAddr - 1;
    UINT32 dwMagic = *pMagic;

    if ((dwMagic & FN_MASK) != FN_MASK)
        return NULL;

    return (const char *)pMagic - (dwMagic & ~FN_MASK);
}

